<div>
  <!--loop through each element in model array-->
	<div class="{{hideRepeat}} col-xs-12">
    <div class="repeatsection" ng-repeat="element in model[options.key]" ng-init="fields = copyFields(to.fields)">
      <formly-form fields="fields"
                   model="element"
                   form="form">
      <div class="col-xs-12 margin-top-30 margin-bottom-30">
                <button type="button" class="btn btn-sm btn-danger" ng-click="model[options.key].splice($index, 1)" translate="form.button.REMOVE">REMOVE</button>
                <hr>
      </div>
      </formly-form>
  </div>
  <p class="AddNewButton col-xs-12">
    <button type="button" class="btn btn-primary" ng-click="addNew()" >{{to.btnText}}</button>
  </p>
</div>